//package com.consumer.config;
//
//import com.netflix.discovery.EurekaClient;
//import com.netflix.loadbalancer.IRule;
//import com.netflix.loadbalancer.RandomRule;
//import com.netflix.loadbalancer.ServerListUpdater;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @author xiangminwen
// * @date 2023/11/17 17:46
// */
//@Configuration
//public class RibbonConfig {
//
//    @Bean
//    public IRule ribbonRule() {
//        return new RandomRule();
//    }
//
//    @Bean
//    @ConditionalOnClass(EurekaClient.class)
//    public ServerListUpdater eurekaEventServerListUpdater(EurekaClient eurekaClient) {
//        return new EurekaEventServerListUpdater(eurekaClient);
//    }
//}
